/**
 * The main class of the application
 * @since 2011-04-09
 */
package com.mephi;

import javax.swing.JOptionPane;
import org.apache.log4j.Logger;
import com.mephi.gui.GUI;

/**
 * @author mephisto
 * @since 2011-04-09
 */
public class MephistoChess
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		try
		{
			logger.info("Application has been started!");
			gui = GUI.INSTANCE;
		}
		catch(Exception e)
		{
			JOptionPane.showMessageDialog(gui.getFraMainFrame(), msg, title, 
					JOptionPane.ERROR_MESSAGE);
			logger.error("Fatal error!",e);
			System.exit(-1);
		}
	}

	
	private static Logger logger = Logger.getLogger("LOG");
	private static String title="B\u0142\u0105d krytyczny";
	private static String msg="Wyst\u0105pi\u0142 b\u0142\u0105d nieznany," +
		" spowodowa\u0142 nieznany.\n Aplikacja zostanie zamkni\u0119ta";
	public static GUI gui = null;
}
